package com.yunxi.service.localService.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.yunxi.dao.order.VehicleStockMapper;
import com.yunxi.dao.vehicle.VehicleCertCustomerMapper;
import com.yunxi.model.order.PmsVehicleStock;
import com.yunxi.model.vehicle.VehicleCertCustomer;
import com.yunxi.service.localService.VehicleCertCustomerService;
import com.yunxi.service.localService.VehicleStockService;
import com.yunxi.vehicle.pojo.VehicleCertReqVO;
import com.yunxi.vehicle.pojo.VehicleCertRespVO;
import org.springframework.stereotype.Service;

import java.util.List;

@Service(value = "vehicleCertCustomerServiceImpl")
public class VehicleCertCustomerServiceImpl extends ServiceImpl<VehicleCertCustomerMapper, VehicleCertCustomer> implements VehicleCertCustomerService {
    @Override
    public PageInfo<VehicleCertRespVO> queryVehicleCert(VehicleCertReqVO vo, int pageNum, int pageSize) {
        PageHelper.startPage(pageNum,pageSize);
        List<VehicleCertRespVO> voList = this.baseMapper.queryVehicleCert(vo);
        PageInfo<VehicleCertRespVO> pageInfo = new PageInfo<>(voList);
        return pageInfo;
    }
}
